<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title>${title}</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="">
    <link rel="stylesheet" href="${path}/lib/weui.min.css">
    <link rel="stylesheet" href="${path}/css/jquery-weui.css">
    <link rel="stylesheet" href="${path}/css/demos.css">
</head>

<body ontouchstart>
<header class='demos-header'>
    <h3 class="demos-title">${title}</h3>
</header>
<div class="bd">
    <div class="page__bd">
        <div class="weui-cells">
            <c:forEach var="item" items="${reports}" varStatus="it">
                <a class="weui-cell weui-cell_access"
                        <c:choose>
                            <c:when test="${from eq 'toSure'}">
                                href="${path}/task/toSure.do?reportId=${item.id}"
                            </c:when>
                            <c:otherwise>
                                href="${path}/task/show.do?reportId=${item.id}&from=${from}"
                            </c:otherwise>
                        </c:choose>
                >
                    <div class="weui-cell__bd">
                        <p>${it.index+1}. ${item.area} ,${item.project}</p>
                    </div>
                    <div class="weui-cell__ft">${item.stateDict}</div>
                </a>
            </c:forEach>
        </div>
    </div>
</div>
</div>
<jsp:include page="foot.jsp"/>

<script src="${path}/lib/jquery-2.1.4.js"></script>
<script src="${path}/lib/fastclick.js"></script>
<script>
    $(function () {
        FastClick.attach(document.body);
    });
</script>
<script src="${path}/js/jquery-weui.js"></script>

</body>
</html>
